<blockquote class="layui-elem-quote">
  <div class="layui-inline">
    <i class="layui-icon layui-icon-list layui-head-icon"></i>
    <span class="layui-font-16 layui-font-green">秒杀场次管理</span>
  </div>
</blockquote>
<div class="layui-card">
  <div class="layui-card-body">
    <form class="layui-form">
      <table class="layui-table">
        <thead>
          <tr>
          <th>ID</th>
          <th>场次标题</th>
          <th>场次开始时间</th>
          <th>场次结束时间</th>
          <th>操作</th>
          </tr> 
        </thead>
      <tbody>
      {foreach $list as $vo}
        <tr>
          <td>{$vo.id}</td>
          <td>{$vo.session_title}</td>
          <td>{$vo.start_time}</td>
          <td>{$vo.end_time}</td>
          <td>
            <a class="layui-btn layui-btn-sm" href="{:url('/store/spike/session/goods',['spike_session_id' => $vo.id])}">设置场次商品</a>
            <a class="layui-btn layui-btn-sm layui-btn-danger del" data-url="{:url('/store/spike/session/delete',['id'=> $vo.id])}">删除</a>
          </td>
        </tr>
      {/foreach}
      </tbody>
      </table>
  </form>
    {$list|raw}
  </div>
</div>
<script>
    layui.use('form', function(){
      var form = layui.form;

      form.render('checkbox');
      form.render('select');
    });              
</script>